package com.study.demoaopacl.controller;

import com.study.demoaopacl.anno.AccCheck;
import com.study.demoaopacl.anno.ValidResult;
import com.study.demoaopacl.entity.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Name: HelloController
 * @Description: java类作用描述
 * @Author: yn
 * @CreateDate: 2022/7/1 16:44
 * @Remark: 特殊说明
 * @Version: 1.0
 */
@RestController
public class HelloController {

    @GetMapping("/")
    @AccCheck
    public String get(String name,@ValidResult(User.class) User result){
        return result.getName()+":hello";
    }
}
